<?php
/**
 * Implementation of hook_views_default_views().
 */
function views_custom_slideshow_views_default_views() {
  /*
   * View 'slideshow'
   */
$view = new view;
$view->name = 'slideshow';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->core = 6;
$view->api_version = '2';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'absolute' => 0,
      'link_class' => '',
      'alt' => '',
      'rel' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'hide_alter_empty' => 1,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_imagen_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'absolute' => 0,
      'link_class' => '',
      'alt' => '',
      'rel' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'hide_alter_empty' => 1,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => '600x250_default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_imagen_fid',
    'table' => 'node_data_field_imagen',
    'field' => 'field_imagen_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'created' => array(
    'order' => 'ASC',
    'granularity' => 'second',
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'evento' => 'evento',
      'noticia' => 'noticia',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 6);
$handler->override_option('style_plugin', 'slideshow');
$handler->override_option('style_options', array(
  'type' => 'ul',
  'mode' => 'views_slideshow_thumbnailhover',
  'views_slideshow_singleframe-prefix' => '',
  'views_slideshow_singleframe' => array(
    'timeout' => '5000',
    'delay' => '0',
    'speed' => '700',
    'start_paused' => 0,
    'fixed_height' => '1',
    'random' => '0',
    'pause' => '1',
    'pause_on_click' => '0',
    'pause_when_hidden' => 0,
    'pause_when_hidden_type' => 'full',
    'amount_allowed_visible' => '',
    'remember_slide' => 0,
    'remember_slide_days' => '1',
    'controls' => '0',
    'pager' => '0',
    'pager_type' => 'Numbered',
    'pager_hover' => '2',
    'pager_click_to_page' => 0,
    'image_count' => '0',
    'items_per_slide' => '1',
    'effect' => 'fade',
    'sync' => '1',
    'nowrap' => '0',
    'advanced' => '',
    'ie' => array(
      'cleartype' => 'true',
      'cleartypenobg' => 'false',
    ),
  ),
  'views_slideshow_thumbnailhover-prefix' => '',
  'views_slideshow_thumbnailhover' => array(
    'main_fields' => array(
      'field_imagen_fid' => 'field_imagen_fid',
      'title' => 0,
    ),
    'breakout_fields' => array(
      'title' => 'title',
      'field_imagen_fid' => 0,
    ),
    'teasers_last' => 1,
    'timeout' => '5000',
    'delay' => '0',
    'speed' => '300',
    'start_paused' => 0,
    'fixed_height' => '1',
    'random' => '0',
    'pause' => '1',
    'pause_on_click' => '0',
    'pause_when_hidden' => 0,
    'pause_when_hidden_type' => 'full',
    'amount_allowed_visible' => '',
    'remember_slide' => 0,
    'remember_slide_days' => '1',
    'pager_event' => 'mouseover',
    'controls' => '0',
    'image_count' => '0',
    'effect' => 'fade',
    'sync' => '1',
    'nowrap' => '0',
    'advanced' => '',
    'ie' => array(
      'cleartype' => 'true',
      'cleartypenobg' => 'false',
    ),
  ),
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'evento' => 'evento',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Usar predefinido',
    ),
  ),
));
$handler->override_option('path', 'slideshow');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));

  $views[$view->name] = $view;

  return $views;
}


